/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2023-12-25 11:50:21
 * @LastEditors: sueRimn
 * @LastEditTime: 2024-01-18 17:26:02
 */
/**
 * 积分管理
 */
import http from "@/utils/http";

/**
 * @description: 场馆预约列表
 * @param {*} data
 */
export const venueApply = (data) => {
  return http({
    url: "/backend/VenueApply/index",
    method: "POST",
    data,
  });
};

/**
 * @description: 预约审核
 * @param {*} data
 */
export const auditVenue = (data) => {
  return http({
    url: "/backend/VenueApply/review",
    method: "POST",
    data,
  });
};

/**
 * @description: 场馆列表
 * @param {*} data
 */
export const getVenueList = (params) => {
  return http({
    url: "/backend/Venue/index",
    method: "GET",
    params,
  });
};
/**
 * @description: 场馆新增
 * @param {*} data
 */
export const addVenue = (data) => {
  return http({
    url: "/backend/Venue/add",
    method: "POST",
    data,
  });
};
/**
 * @description: 场馆编辑
 * @param {*} data
 */
export const editVenue = (data) => {
  return http({
    url: "/backend/Venue/update",
    method: "POST",
    data,
  });
};
/**
 * @description: 场馆上下架
 * @param {*} data
 */
export const chageStatusVenue = (data) => {
  return http({
    url: "/backend/Venue/chageStatus",
    method: "POST",
    data,
  });
};
/**
 * @description: 场馆删除
 * @param {*} data
 */
export const delVenue = (data) => {
  return http({
    url: "/backend/Venue/del",
    method: "POST",
    data,
  });
};
